package com.ruge.algorithm.sort;

import lombok.Data;

/**
 * @program: ruge-algorithm
 * @description:
 * @author: ruge.wu
 * @create: 2021-12-19 22:01
 **/
@Data
public class Student implements Comparable<Student>{
    private String username;
    private int age;

    @Override
    public int compareTo(Student o) {
        return this.getAge()-o.getAge();
    }
}
